<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<p:dialog header="Send email to Customer(s)" widgetVar="sendEmailDlg"
		resizable="true" id="sendEmailDlg" showEffect="explode" hideEffect="clip"
		modal="false" width="500" height="350">
		<h:panelGrid columns="2" style="width:100%">
			<h:outputText value="Website name:" />
			<p:inputText value="#{orderModel.email.webSiteName}" disabled="true" />
			<h:outputText value="From:" />
			<p:inputText value="#{orderModel.email.from}" disabled="true" />
			<h:outputText value="To:" />
			<p:inputText value="All customer in list" disabled="true" />
			<h:outputText value="Subject:" />
			<p:inputText value="#{orderModel.email.subject}" style="width:100%;"/>
			<h:outputText value="Text:" />
			<p:inputTextarea value="#{orderModel.email.content}"  rows="10"  style="width:100%;"/>
			<p:commandButton value="OK" ajax="true" oncomplete="sendEmailDlg.hide()"
				update=":listForm, :detailForm,:headerForm" style="float:left"
				actionListener="#{orderController.sendEmailToCustomer}" />
			<p:commandButton value="Cancel" type="button" onclick="sendEmailDlg.hide()"
				style="float:right" />
		</h:panelGrid>
	</p:dialog>
</ui:composition>

</html>